using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevComponents.DotNetBar;
using Entities.IRepository;
using Entities;
using DAL.SqlServer;
using System.Linq;

namespace MobilesApplication.Salers
{
    public partial class BillListForm : DevComponents.DotNetBar.Office2007Form
    {
        private IGeneralRepository<Bill> _repBills;
        public IGeneralRepository<BillDetail> _repBillDetails;
        public BillListForm()
        {
            InitializeComponent();
        }

        private void BillListForm_Load(object sender, EventArgs e)
        {
            _repBills = new GeneralRepository<Bill>();
            _repBillDetails = new GeneralRepository<BillDetail>();
            gridControl.DataSource = _repBills.GetAll().ToList();
        }
        

    }
}